    <script type="text/javascript" src="<?php echo base_url();?>ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>ckeditor/ckfinder/ckfinder.js"></script>
<style>
    .wrapper2 {min-height:400px;width:728px;float:right;padding-right:10px;border:1px solid #EDEDED;margin-top:22px;padding-left:20px}
    .wrapper2-right{float:left;width:200px}
    .title-right{color:green;font-size:15px;font-weight:bold;border-bottom:2px solid #EDEDED}
    .body-right{min-height:50px}
    input.url{width:500px;color:red;font-style:italic;font-size:13px;border:none;background:none;float:left}
    label.title-right{width:200px;display:block}
    input.bt-ok{margin:20px auto;float:none!important;font-weight:bold}
    table.cke_editor{max-width:730px!important;resize: none!important;}
    p.roww input{float:left}
    span.error2{padding-left:10px}
</style>
<div class="wrapper clearfix">
    <div class="wrapper2">
    <?php echo validation_errors(); ?>
    <?php if(empty($thongbao)){?>
        <form action="" method="post">
        <?php if(!empty($user) && $user->type==1){
            $image=explode(',',$user->avartar);
            echo '<p class="roww" style="width:400px;height:30px"><label class="title-right">Tới :<a target="_blank" href="',base_url(),'thong-tin-gia-su.',$user->id,'.html">',$user->firstname,' ',$user->name,'</a></label></p><a target="_blank" href="',base_url(),'thong-tin-gia-su.',$user->id,'.html"><img class="big_images" style="float:right" src="',$image['0'],'" width="80" height="100" /></a>';
        }?>
            <p class="roww" style="width: 400px;height:60px"><label class="title-right" >Tiêu đề : </label><input type="text" size="50" name="subjects" value="<?php if(!empty($_POST['subjects'])){echo $_POST['subjects'];}?>" /></p>
            <p class="roww" style="width: 400px!important;height:70px"><label class="title-right">Nội dung </label></p>    
            <p class="roww" style="max-width: 730px;">
                <textarea name="noidung" style="max-width: 730px;resize:none!important" id="soanthao"></textarea>
            </p>
            <p class="rowww">
                <input type="hidden" value="ok" name="ok" />
                <input type="submit" value="Gửi" class="bt-ok" />
            </p>
        </form>
        <?php }else{ echo $thongbao;}?>
    </div>
    <?php $this->load->view('mod_email/menu');?>
</div>
<script type="text/javascript">
           if ( typeof CKEDITOR == 'undefined' )
            {
            	document.write("khong "
            		 ) ;
            }
            else
            {
            	var editor = CKEDITOR.replace( 'soanthao' );   
                var editor2 = CKEDITOR.replace( 'soanthao2' );         
                CKFinder.setupCKEditor( editor, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;  
                CKFinder.setupCKEditor( editor2, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;          	
            }
		</script>